﻿using System;
using System.Web.Services;
using phudieuhungthinh.BL;
using phudieuhungthinh.BL.Model;

namespace phudieuhungthinh.Admin
{
    public partial class AboutContentPage : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        [WebMethod(EnableSession = true)]
        public static void SaveArticle(ArticleModel articleModel)
        {
            articleModel.ArticleType = (int)ArticleType.About;
            var articleImpl = new ArticleImpl();
            articleImpl.SaveArticle(articleModel);
        }

        [WebMethod(EnableSession = true)]
        public static object Get()
        {
            var articleImpl = new ArticleImpl();
            var model = articleImpl.GetArticle(ArticleType.About);
            return model;
        }
    }
}